package com.zhouchao.rpc.consumer;

import com.zhouchao.rpc.api.IUserService;
import com.zhouchao.rpc.consumer.proxy.RpcClientProxy;
import com.zhouchao.rpc.pojo.User;

/**
 * @Author: zhouchao
 * @Date: 2021/08/01 01:15
 * @Description:
 */
public class ClientBootStrap {
    public static void main(String[] args) {
        IUserService userService = RpcClientProxy.createProxy(IUserService.class);
        User user = userService.getUserById(1);
        System.out.println(user);
    }
}
